<nav id="buy" class="box_sizing">
    <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?=$detail['QQ']?>&site=qq&menu=yes" class="buy_item_0">
        <span class="photo"><img src="images/buy_1.jpg" alt=""></span>
        <span class="name">客服</span>
    </a>
    <a href="<?=base_url('/home/seller_detail/?MemberId='.$product['MemberId'])?>" class="buy_item_0">
        <span class="photo"><img src="images/buy_2.jpg" alt=""></span>
        <span class="name">进店</span>
    </a>
    <a href="javascript:void(0)" MemberId="<?=$_SESSION['MemberId']?>" ProId="<?=$product['ProId']?>" class="buy_item_0 <?=$_SESSION['MemberId']?'fav_wish_list':'fav_login'?>">
        <span class="photo"><img src="images/buy_3.jpg" alt=""></span>
        <span class="name">收藏</span>
    </a>
    <?php if($_SESSION['MemberId']) {?>
    <a href="javascript:void(0)" MemberId="<?=$_SESSION['MemberId']?>" ProId="<?=$product['ProId']?>" class="buy_item_1 bg1 add_cart">加入购物车</a>
    <a href="javascript:void(0)" MemberId="<?=$_SESSION['MemberId']?>" ProId="<?=$product['ProId']?>" class="buy_item_1 bg2 checkout">立即购买</a>
    <?php } else {?>
    <a href="/yjzb/login.php" class="buy_item_1 bg1 add_cart">加入购物车</a>
    <a href="/yjzb/login.php" class="buy_item_1 bg2 checkout">立即购买</a>
    <?php }?>
</nav>